﻿using BonjourQuotation.ObjectModel.ErrorData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BonjourQuotation.ObjectModel.BusinessData
{
    public class OperationInvoiceBData
    {
        public List<OperationInvoiceGridBData> Rows { get; set; }
        public short InvoiceNo { get; set; }
        public string InvoiceComment{ get; set; }
        public string PerformaComment { get; set; }
        public DateTime? InvoiceDate { get; set; }
        public DateTime? DepositDue { get; set; }
        public DateTime? FinalPayment { get; set; }
        public double? InvCadUsdRate { get; set; }
        public bool? InvIsGroupGir { get; set; }
        public int? InvGroupQuotaID { get; set; }
        public bool? DepositM { get; set; }
        public decimal? DepositAmount { get; set; }
        public decimal? TotalRefund { get; set; }
        public List<string> InvPaymentTerms { get; set; }
        public string SelectedInvPaymentTerms { get; set; }
        public Dictionary<int, string> InvBanks { get; set; }
        public int? SelectedInvBank { get; set; }
        public DateTime? InvDepositeDate { get; set; }
        public DateTime? InvRateChangeDate { get; set; }
        public bool? InvProforma { get; set; }
        public bool InvInvoice { get; set; }
        public decimal? InvTotalDeposit { get; set; }
        public decimal? InvTotalRefund { get; set; }
        public Dictionary<int, string> ContactPerson { get; set; }
        public int? SelectedContactPerson { get; set; }
        public Dictionary<int, string> InvSalesPerson { get; set; }
        public Dictionary<int, string> InvType { get; set; }
        public int? SelectedInvSalesPerson { get; set; }
        // Group Cust Info
        public string InvoiceCustomer { get; set; }
        public int InvoiceCustomerID { get; set; }
        public string InvoiceGroupName { get; set; }
        public string InvoiceGroupCode { get; set; }
        public int InvoiceGroupID { get; set; }
        public DateTime? InvoiceArrivalDate { get; set; }
        public ErrorBInfo Error { get; set; }
       
    }
    public class OperationInvoiceGridBData
    {
        public int LineNo { get; set; }
        public string SelType { get; set; }
        public int SelTypeID { get; set; }
        public int? VendorID { get; set; }
        public int Qty { get; set; }
        public string Description { get; set; }
        public string Currency { get; set; }
        public bool? CrDeb { get; set; }
        public decimal Price { get; set; }
        public decimal? PriceChange { get; set; }
        public decimal? Debit { get; set; }
        public decimal? Credit { get; set; }
    }
    
}
